package edu.stanford.bmir.protege.web.client.ui.ontology.scene;

import java.util.Collection;

import com.gwtext.client.core.Position;
import com.gwtext.client.widgets.Panel;
import com.gwtext.client.widgets.TabPanel;
import com.gwtext.client.widgets.layout.FitLayout;

import edu.stanford.bmir.protege.web.client.project.Project;
import edu.stanford.bmir.protege.web.client.rpc.data.EntityData;
import edu.stanford.bmir.protege.web.client.ui.generated.UIFactory;
import edu.stanford.bmir.protege.web.client.ui.portlet.AbstractOWLEntityPortlet;
import edu.stanford.bmir.protege.web.shared.project.ProjectId;

@SuppressWarnings("unchecked")
public class ScenesMenuPortlet extends AbstractOWLEntityPortlet {
	
	ScenesTab scenesTab;
	
	public ScenesMenuPortlet(Project project) {
		super(project);
	}


	@Override
	public void initialize() {
		setLayout(new FitLayout());
		setTitle("menu portlet");
		
		System.out.println( UIFactory.maps.size() );
		
        TabPanel tabPanel = new TabPanel();  
        tabPanel.setTabPosition(Position.TOP);  
        tabPanel.setResizeTabs(true);  
        tabPanel.setMinTabWidth(115);  
        tabPanel.setTabWidth(145);  
        tabPanel.setActiveTab(0);  
        
        Panel scenesOne = new Panel("从零构建本体");
        scenesOne.setLayout(new FitLayout());  
        scenesOne.setAutoScroll(true);  
        scenesOne.add( new SeceneOne(getProject()) );
        
        Panel scenesTwo = new Panel("非本体资源重构");  
        scenesTwo.setLayout(new FitLayout());  
        scenesTwo.setAutoScroll(true);  
        scenesTwo.add( new SeceneTwo(getProject()) );
        
        Panel scenesThree = new Panel("本体资源重用");  
        scenesThree.setLayout(new FitLayout());  
        scenesThree.setAutoScroll(true);  
        scenesThree.add( new SeceneThree(getProject()) );
        
        tabPanel.add(scenesOne);  
        tabPanel.add(scenesTwo);  
        tabPanel.add(scenesThree);  
  
        add(tabPanel);
	}
	
	 private static String getBogusMarkup() {  
	        return "<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. " +  
	                "Sed metus nibh, sodales a, porta at, vulputate eget, dui.  " +  
	                "In pellentesque nisl non sem. Suspendisse nunc sem, pretium eget, " +  
	                "cursus a, fringilla vel, urna.";  
	 }


	@Override
	public Collection<EntityData> getSelection() {
		// TODO Auto-generated method stub
		return null;
	}


	@Override
	public void reload() {
		// TODO Auto-generated method stub
		
	}  
	


}
